package com.xs.dbs;


import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author xs
 * date 2019-04-29 9:40
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSourceKey();
    }
}
